package com.mysteel.cyx.ddd.interfaces.web.validator;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author：cyx
 * @Date：2024/4/26 16:43
 */
@Data
@NoArgsConstructor
public class AssertionException extends RuntimeException {

    private Integer errorCode;
    private String errorMessage;

    public AssertionException(Integer errorCode, String errorMessage) {
        super(errorMessage);
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }
}
